package com.dome.order.controller;

import com.dome.client.config.result.RtnResult;
import com.dome.order.entity.bo.OrderEntity;
import com.dome.order.service.OrderService;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@Api(value = "订单接口", tags = "订单接口")
@RestController
public class OrderController {

    @Autowired
    private OrderService orderService;
    @Value("${server.port}")
    private int port;

    @GetMapping("/test")
    public RtnResult test() {

        OrderEntity userEntity= orderService.selectById(1);
        return RtnResult.Success(port);
    }
}
